package com.blrs.domain;

import java.util.Date;

import com.blrs.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.blrs.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 采购管理变更记录对象 purchasing_change_record
 * 
 * @author ruoyi
 * @date 2023-10-18
 */
public class PurchasingChangeRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 变更记录表主键id */
    private String id;

    /** 采购单id */
    private String purchasingId;

    /** 变更时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "变更时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purchasingTime;

    /** 变更内容 */
    @Excel(name = "变更内容")
    private String purchasingContent;

    /** 变更人id */
    private Long userChangedId;

    /** 变更人名称 */
    @Excel(name = "变更人名称")
    private String userChanged;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setPurchasingId(String purchasingId) 
    {
        this.purchasingId = purchasingId;
    }

    public String getPurchasingId() 
    {
        return purchasingId;
    }
    public void setPurchasingTime(Date purchasingTime) 
    {
        this.purchasingTime = purchasingTime;
    }

    public Date getPurchasingTime() 
    {
        return purchasingTime;
    }
    public void setPurchasingContent(String purchasingContent) 
    {
        this.purchasingContent = purchasingContent;
    }

    public String getPurchasingContent() 
    {
        return purchasingContent;
    }
    public void setUserChangedId(Long userChangedId) 
    {
        this.userChangedId = userChangedId;
    }

    public Long getUserChangedId() 
    {
        return userChangedId;
    }
    public void setUserChanged(String userChanged) 
    {
        this.userChanged = userChanged;
    }

    public String getUserChanged() 
    {
        return userChanged;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("purchasingId", getPurchasingId())
            .append("purchasingTime", getPurchasingTime())
            .append("purchasingContent", getPurchasingContent())
            .append("userChangedId", getUserChangedId())
            .append("userChanged", getUserChanged())
            .toString();
    }
}
